import request from "@/utils/Request";
export default {
	listDianJia(data) {
		return request({
			url: "/ht/electricity/price/get",
			method: "post",
			data: data,
		});
	},
	saveDianJia(data) {
		return request({
			url: "/ht/electricity/price/save",
			method: "post",
			data: data,
		});
	},
	listDianLiang(data) {
		return request({
			url: "/ht/metter/readingDaily/get",
			method: "post",
			data: data,
		});
	},
	saveDianLiang(data) {
		return request({
			url: "/ht/metter/readingDaily/save",
			method: "post",
			data: data,
		});
	},
	deleteDianLiang(id) {
		return request({
			url: "/ht/metter/readingDaily/delete",
			method: "delete",
			params: { ids: id },
		});
	},
	listJieSuan(data) {
		return request({
			url: "/ht/electricity/usage/get",
			method: "post",
			data: data,
		});
	},
	saveJieSuan(data) {
		return request({
			url: "/ht/electricity/usage/save",
			method: "post",
			data: data,
		});
	},
	listDianBiao() {
		return request({
			url: "/ht/electricity/ammeter/get",
			method: "post",
		});
	},
	listSettlementBill() {
		return request({
			url: "/ht/electricity/settlement/bill/get",
			method: "post",
		});
	},
	listSettlementBillDetail(id) {
		return request({
			url: "/ht/electricity/settlement/bill/show",
			method: "post",
			data: { id: id },
		});
	},
	listSettlementBillModel() {
		return request({
			url: "/ht/electricity/settlement/bill/model/get",
			method: "post",
		});
	},
	createSettlementBill(data) {
		return request({
			url: "/ht/electricity/settlement/bill/create",
			method: "post",
			data,
		});
	},
	exportSettlementBill(id) {
		return request({
			url: "/ht/electricity/settlement/bill/export",
			method: "post",
			data: { id: id },
			responseType: "blob",
		});
	},

	deleteSettlementBill(id) {
		return request({
			url: "/ht/electricity/settlement/bill/delete",
			method: "delete",
			params: { ids: id },
		});
	},

	approvalDailyDianLiang(data) {
		return request({
			url: "/ht/metter/readingDaily/approval",
			method: "post",
			data: data,
		});
	},
};
